package com.qk.controller;

import com.qk.common.Result;
import com.qk.service.ReportSerive;
import com.qk.vo.OverviewVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首页概览
 */
@Slf4j
@RestController
@RequestMapping("/report")
public class ReportController {

    @Autowired
    private ReportSerive reportSerive;
    @GetMapping("/overview")
    public Result getOverview(){
        log.info("获取报表");
        OverviewVo overviewVo = reportSerive.getOverview();
        return Result.success(overviewVo);
    }
}
